home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / 422mods.zip / FAMOUS4.422 < prev    next >
Text File  |  1993-04-12  |  8KB  |  291 lines

  1. Yeast Infection - fake virus!  (FAMOUS4.MOD)  funny!!!
  2. Famous Star #1 @6971 3≡7Cha-CHING!¡!¡3≡
  3. Fri Apr 09 06:40:32 1993
  4. ╔═══════════════════════════════════════════════════════════════════════════╗
  5. ║ Mod Name     : Yeast Infection!!! (A harmless, but scarey joke.)          ║
  6. ║ Filename     : FAMOUS4.MOD                      Mod Version  : 1.03       ║
  7. ║ Author       : Famous Star (IceNET 1@6971)      Date         : 04/09/93   ║
  8. ║ WWIV Version : 4.21a (Maybe others)             Files     : BBS.C, FCNS.H ║
  9. ║ Difficulty   : █▒▒▒▒▒▒▒▒▒  (Can you say "Hi. Welcome to Carl's Jr. May I  ║
  10. ║                      take your order please?")             ║
  11. ║ Description  : These days, it seems that everyone is very concerned about ║
  12. ║   computer virii.  I decided to have some fun with my users.  What this   ║
  13. ║   mod will do is simulate a *FAKE & HARMLESS* virus by me called the      ║
  14. ║   "Yeast Infection"!  It will first show an ANSI screen telling the user  ║
  15. ║   that they're "Now infected...etc...", drop to DOS from a simulated      ║
  16. ║   Telemate, pause, format drive C:, do some fake line noise, show the     ║
  17. ║   familiar "....bytes free...bytes in bad sectord...etc..." screen, then  ║
  18. ║   pause, inform the user that it was a joke, then return to the bbs!      ║
  19. ╚═══════════════════════════════════════════════════════════════════════════╝
  20. ┌───────────────────────────────────────────────────────────────────────────┐
  21. │ Disclaimer: If your computer gets stoned, your daughter gets pregnant, or │
  22. │    your little brother decides that 'FORMAT C:/U' is the latest in cool   │
  23. │    video games-  and doesn't understand what 'WARNING, ALL DATA ON NON=   │
  24. │    REMOVABLE DRIVE C: WILL BE LOST!  Proceed with format (Y/N)?_' means,  │
  25. │    then don't come crying to me!                                          │
  26. └───────────────────────────────────────────────────────────────────────────┘
  27. ┌───────────────────────────────────────────────────────────────────────────┐
  28. │      "My user list just got trashed!" PLEASE - backup before ANY mod.     │
  29. └───────────────────────────────────────────────────────────────────────────┘
  30. Okay...open up BBS.C and change / add the following:
  31.  
  32.      void mainmenu()
  33.      {
  34.        char *s, s1[81],s2[81];
  35.        int i, yeast;                      /* CHANGE - add 'yeast' */
  36.        long l;
  37.  
  38. /* Much FURTHER DOWN IN VOID MAINMENU...*/
  39.  
  40.        prt(2,s1);
  41.        helpl=1;
  42.        s=mmkey(0);
  43.        helpl=0;
  44.        yeast=(rand()%100)+1;             /* ADD */
  45.      if(yeast==50)                   /* ADD */
  46.      yeast_infect();                 /* ADD */
  47.        if (s[0])
  48.          for (i=0; i<MAX_SUBS; i++)
  49.            if (strcmp(usub[i].keys,s)==0)
  50.              cursub=i;
  51.        sysopchar(s);
  52.  
  53. /* Now move on down to void dlmainmenu(void)... */
  54.  
  55. void dlmainmenu(void)
  56. {
  57.   char *s, s1[81],s2[81],ch;
  58.   int i,i1,i2,abort,next,yeast;                 /* CHANGE - add 'yeast' */
  59.   messagerec m;
  60.  
  61. /* Further down... */
  62.  
  63.   if (s1[0]==0)
  64.     sprintf(s1,"(%s)-(%s) :",udir[curdir].keys,directories[udir[curdir].subnum]
  65. .name);
  66.   prt(2,s1);
  67.   helpl=2;
  68.   s=mmkey(1);
  69.   helpl=0;
  70.  
  71.          yeast=(rand()%100)+1;              /* ADD */
  72.      if(yeast==50)                      /* ADD */
  73.      yeast_infect();                    /* ADD */
  74.  
  75.   if (s[0])
  76.     for (i=0; i<64; i++)
  77.       if (strcmp(udir[i].keys,s)==0)
  78.         curdir=i;
  79.   if (strlen(s)>2) {
  80.     sprintf(s1,"//%s",s);
  81.     sysopchar(s1);
  82.  
  83. /* Okay...now down at the VERY BOTTOM of BBS.C, add this entire void... */
  84.  
  85. void yeast_infect()
  86. {
  87.     int m,j,j1,z;
  88.     char k3[81],r[81],t[81];
  89.  
  90.     j=0;
  91.     j1=0;
  92.     z=0;
  93.     m=0;
  94.  
  95.     outchr(12);
  96.     printfile("infected.msg");
  97.     nl();
  98.        sysoplog("    6*** USER GOT HIT BY THE YEAST INFECTION!!! ***");0
  99.  
  100.     delay(4500);
  101.     outchr(12);
  102.   ansic(0);
  103.   pl("Microsoft(R) MS-DOS(R) Version 6");
  104.   pl("             (C)Copyright Microsoft Corp 1981-1993.");
  105.     nl();
  106.     delay(1000);
  107.     pl("Type 'EXIT' to return to Telemate . . .");
  108.     nl();
  109.     outstr("[TM] C:\\TELE> ");
  110.     delay(3000);
  111.     slowtype(0,"format c:");
  112.     nl(); nl();
  113.     pl("WARNING, ALL DATA ON NON-REMOVABLE DISK");
  114.     pl("DRIVE C: WILL BE LOST!");
  115.     outstr("Proceed with format (Y/N)? ");
  116.     delay(2000);
  117.     slowtype(0,"Y");
  118.     nl(); nl();
  119.     pl("Checking existing disk format.");
  120.     delay(800);
  121.     pl("Saving UNFORMAT information.");
  122.     nl();
  123.     pl("Verifying 120M");
  124.     nl();
  125.             strcpy(k3,"0 percent completed.");
  126.             outstr(k3);
  127.             do {
  128.                 m++;
  129.                 z=0;
  130.                 do {
  131.                     z++;
  132.                     left(strlen(k3));
  133.                     sprintf(k3,"%d percent completed. ",z);
  134.                     outstr(k3);
  135.                     delay(190);
  136.                     checkhangup();
  137.                     } while ((z<100) && (!hangup));
  138.                 } while ((m<1) && (!hangup));
  139.                 nl();
  140.                 pl("Format complete.");
  141.       delay(500);
  142.       outchr(12);
  143.       j1=(rand() % 20) + 1000;
  144.       for (j=0; j<j1; j++)
  145.         outchr(rand() % 256);
  146.   nl();
  147.   ansic(0);
  148.   printfile("fakeform.msg");
  149.   delay(3000);
  150.   nl(); nl();
  151.   pl("TM.EXE not found.");
  152.   pl("COMMAND.COM not found.");
  153.   nl();
  154.   outstr("[TM] C:\\TELE> ");
  155.   delay (5000);
  156.   nl();
  157.   pl("4Ha! Ha! Ha!  This was only a JOKE!!!");0
  158.   nl();
  159.   delay(1500);
  160.   pl("6Returning to the bbs.......");0
  161.   delay(1500);
  162.   }
  163.  
  164.  
  165.  
  166.  
  167. If you don't have ENHANCE.C mod, then add the following voids just below the
  168. yeast one (the following by Tolkien #1 @3456)...
  169.  
  170. /*
  171.  * This function will type out a string at random speed, as if there were
  172.  * someone actually typing it. The color is the first parameter, just as
  173.  * in the prt() function. A <CR> is not done.
  174.  *
  175.  * ANSI not required.
  176.  *
  177.  */
  178.  
  179. void slowtype(int color, unsigned char *s)
  180. {
  181.   int x, i;
  182.  
  183.   x=0;
  184.   randomize();
  185.   ansic(color);
  186.   checkhangup();
  187.   while ((s[x]) && (!hangup)) {
  188.     outchr(s[x]);
  189.     delay(random(120)+100);
  190.     if (s[x]==32) {
  191.       i=random(2);
  192.       if (i==0)
  193.         delay(random(100)+250);
  194.     }
  195.     x++;
  196.   }
  197. }
  198.  
  199. void left(int i)
  200. {
  201.   char s[10];
  202.  
  203.     sprintf(s,"\x1b[%dD",i);
  204.     outstr(s);
  205. }
  206.  
  207. void right(int i)
  208. {
  209.   char s[10];
  210.  
  211.     sprintf(s,"\x1b[%dC",i);
  212.     outstr(s);
  213. }
  214. ------------------
  215. Okay....now add the following line to FCNS.H just below all the other
  216. voids in BBS.C
  217.  
  218. /* Put these in FCNS.H */
  219.  
  220. void yeast_infect();
  221. void slowtype(int color, unsigned char *s);
  222. void left(int i);
  223. void right(int i);
  224.  
  225.  
  226. /*----------------*/
  227.  
  228. Close up bbs.c and fcns.h.
  229.  
  230.  
  231. Just a few more steps...
  232.  
  233. Save the following as a file called INFECTED.MSG:
  234.  
  235. /*START HERE (DON'T INCLUDE THIS LINE) */
  236.  
  237. 
  238. 6**************************************************************************0
  239. 4       AHa hahahahhahah!!!  You're computer now has a YEAST INFECTION!!!! 0
  240. 6**************************************************************************0
  241.  
  242.  
  243.  
  244.  
  245. 2You should have practiced safe computing....but now it's too late!!!0
  246.  
  247.  
  248.  
  249.  
  250. 5Have a wonderful day...0
  251.  
  252. /*END HERE (DON'T INCLUDE THIS LINE) */
  253.  
  254.  
  255. Now save the below into a file called FAKEFORM.MSG...
  256.  
  257. /*START HERE (DON'T INCLUDE THIS LINE) */
  258.  
  259.  
  260. Volume MS-DOS-6.0 created on 01-06-93 8:12a
  261. Volume Serial Number is 1DF9-2144
  262.  
  263. 119956452 bytes total disk space
  264.    139264 bytes in 6 hidden files
  265.   1120096 bytes in 37 directories
  266.  87033215 bytes in 4912 user files
  267.  30155431 bytes available on disk
  268.   
  269.      8192 bytes in each allocation unit
  270.     15239 total allocation units on disk
  271.      4187 available allocation units on disk
  272.  
  273.    655360 total bytes memory 
  274.    451458 bytes free
  275.  
  276.  
  277. /*END HERE (DON'T INCLUDE THIS LINE) */
  278.  
  279.  
  280. That's it!  Exit your editor and type MAKE.
  281.  
  282. Enjoy the mod!  Let me know how you like it by pressing 'A' after this
  283. message.
  284.  
  285. 2≡5ƒÅ/\/\φù$ 6*5 ⌠╪åτ2≡0
  286. 2             5⌡0
  287. 1BBS7: 2619-451-2174,,,11  6(2 Voice/data switch - The ,,,11 is a must!6)0
  288.  
  289. 2■7 5Famous0 6*0 5Star7'5s BBS0 5 1619-451-21746,,,110 6 4Cha-CHING!0 3IceNET 7@36971  LaMeNeT 7@33 2■0
  290.  
  291.